package com.pray.praymall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pray.common.utils.PageUtils;
import com.pray.praymall.ware.entity.WareInfoEntity;
import com.pray.praymall.ware.vo.FareVo;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 仓库信息
 *
 * @author pray
 * @email pray_cbh@163.com
 * @date 2020-08-29 12:20:19
 */
public interface WareInfoService extends IService<WareInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据用户的收货地址计算运费
     * @param addrId 收货地址id
     * @return 运费
     */
    FareVo getFare(Long addrId);
}

